package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.exception.MyException;
import com.itheima.health.pojo.CheckItem;

import java.util.List;

public interface CheckItemService {
    /**
    * @Description: 检查项查询所有
    * @Param: []
    * @return: java.util.List<com.itheima.health.pojo.CheckItem>
    * @Author: HuChunping
    * @Date: 2021/1/6-20:17
    */
    List<CheckItem> findAll();
    
    /** 
    * @Description: 添加检查项
    * @Param: [checkItem] 
    * @return: void 
    * @Author: HuChunping 
    * @Date: 2021/1/7-15:58
    */
    void add(CheckItem checkItem);

    /**
    * @Description: 分页查询
    * @Param: [queryPageBean]
    * @return: com.itheima.health.entity.PageResult<com.itheima.health.pojo.CheckItem>
    * @Author: HuChunping
    * @Date: 2021/1/7-17:50
    */
    PageResult<CheckItem> findPage(QueryPageBean queryPageBean);

    /**
    * @Description: 通过id查询检查项
    * @Param: [id]
    * @return: com.itheima.health.pojo.CheckItem
    * @Author: HuChunping
    * @Date: 2021/1/7-19:41
    */
    CheckItem findById(int id);

    void update(CheckItem checkItem);

    void deleteById(int id) throws MyException;
}
